<?php
/**
 * Created by PhpStorm.
 * User: wangye
 * Date: 19-2-14
 * Time: 下午4:32
 */

$curl_file = new CURLFile('./curl.png');
$post_pic = array('upload_pic'=>$curl_file);
$ch = curl_init();
curl_setopt($ch,CURLOPT_POST,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post_pic);


